package com.spring.lesson001.demo12.cglib.eg5;

import com.spring.lesson001.demo12.cglib.eg1.Service1;
import com.spring.lesson001.demo12.cglib.eg4.Service4;
import org.junit.Test;

/**
 * @author vhans
 */
public class CglibTest {
    @Test
    public void test7() {
        Service1 service1 = CostTimeProxy.createProxy(new Service1());
        service1.m1();

        Service4 service4 = CostTimeProxy.createProxy(new Service4());
        service4.insert1();
        service4.insert2();
        System.out.println(service4.get1());
    }
}
